package com.gnss.common.proto;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author guangbinhuang
 * @date 2018/4/13
 * @desc 终端protobuf定义
 **/
@Getter
@Setter
@ToString
@ProtobufClass
public class TerminalProto implements Serializable {

    @Protobuf(fieldType = FieldType.STRING, order = 1, required = true)
    private String nodeName;

    @Protobuf(fieldType = FieldType.INT64, order = 2, required = true)
    private long terminalId;

    @Protobuf(fieldType = FieldType.STRING, order = 3)
    private String terminalSimCode;

    @Protobuf(fieldType = FieldType.STRING, order = 4)
    private String terminalNum;

    @Protobuf(fieldType = FieldType.STRING, order = 5)
    private String vehicleNo;
}
